﻿using Castle.DynamicProxy;
using Microsoft.EntityFrameworkCore.Diagnostics;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using IInterceptor = Microsoft.EntityFrameworkCore.Diagnostics.IInterceptor;

namespace Admin.Service
{
    public class CustomAutofacAop : IInterceptor
    {
        public void Intercepet(IInvocation invocation)
        {
            Console.WriteLine("执行前。。。。");
            invocation.Proceed();
            Console.WriteLine("执行后。。。。");
        }
    }
}
